import Vue from 'vue'

/**
 * 获取用户病例基本信息
 */
export default {
  /**
   * 获取用户病例信息
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getBaseInfoByUserID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordBaseInfo/GetBaseInfoByUserID', config)
    return result
  },

  /**
   * 更新用户基本病例信息
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async updateMenuByUserId(params, config = {}) {

    let result = await Vue.http.put('/MedicalRecordBaseInfo/UpdateBaseInfo', params, config);
    return result;
  },

  /**
   * 添加用户基本病例信息
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async AddMenuByUserId(params, config = {}) {

    let result = await Vue.http.post('/MedicalRecordBaseInfo/AddBaseInfo', params, config);
    return result;
  },

  /**
   * 获取用户现在状态
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getCurrentStatusByUserID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordCurrentStatus/GetCurrentStatusByUserID', config);
    return result
  },

  /**
   * 更新用户现在状态
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async updateCurrentStatus(params, config = {}) {

    let result = await Vue.http.put('/MedicalRecordCurrentStatus/UpdateCurrentStatus', params, config);
    return result;
  },

  /**
   * 添加用户现在状态
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async addCurrentStatus(params, config = {}) {

    let result = await Vue.http.post('/MedicalRecordCurrentStatus/AddCurrentStatus', params, config);
    return result;
  },

  /**
   * 获取用户病例的月经
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getMenstrualHistoryByUserID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordMenstrualHistory/GetMenstrualHistoryByUserID', config);
    return result
  },

  /**
   * 更新用户病例月经信息
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async updateMenstrualHistory(params, config = {}) {

    let result = await Vue.http.put('/MedicalRecordMenstrualHistory/UpdateMenstrualHistory', params, config);
    return result;
  },

  /**
   * 添加用户月经信息
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async addMenstrualHistoryModel(params, config = {}) {

    let result = await Vue.http.post('/MedicalRecordMenstrualHistory/AddMenstrualHistoryModel', params, config);
    return result;
  },

  /**
   * 获取用户生育史
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getChildbearingHistoryByUserID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordChildbearingHistory/GetChildbearingHistoryByUserID', config);
    return result
  },

  /**
   * 获取用户生育史byId
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getChildbearingHistoryByID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordChildbearingHistory/GetChildbearingHistoryByID', config);
    return result
  },

  /**
   * 更新用户生育史
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async updateChildbearingHistory(params, config = {}) {

    let result = await Vue.http.put('/MedicalRecordChildbearingHistory/UpdateChildbearingHistory', params, config);
    return result;
  },

  /**
   * 添加用户生育史
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async addChildbearingHistory(params, config = {}) {

    let result = await Vue.http.post('/MedicalRecordChildbearingHistory/AddChildbearingHistory', params, config);
    return result;
  },

  /**
   * 获取用户婚育史
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getMarriageListByUserID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordMarriage/GetMarriageListByUserID', config);
    return result
  },

  /**
   * 更新用户婚育史
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async updateMarriage(params, config = {}) {

    let result = await Vue.http.put('/MedicalRecordMarriage/UpdateMarriage', params, config);
    return result;
  },

  /**
   * 添加用户婚育史
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async addMarriage(params, config = {}) {

    let result = await Vue.http.post('/MedicalRecordMarriage/AddMarriage', params, config);
    return result;
  },

  /**
   * 获取用户既往史
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getOperationHistoryByUserID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordOperationHistory/GetOperationHistoryByUserID', config);
    return result
  },

  /**
   * 获取用户既往史byId
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getOperationHistoryByID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordOperationHistory/GetOperationHistoryByID', config);
    return result
  },

  /**
   * 更新用户既往史
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async updateOperationHistory(params, config = {}) {

    let result = await Vue.http.put('/MedicalRecordOperationHistory/UpdateOperationHistory', params, config);
    return result;
  },

  /**
   * 添加用户既往史
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async addOperationHistory(params, config = {}) {

    let result = await Vue.http.post('/MedicalRecordOperationHistory/AddOperationHistory', params, config);
    return result;
  },

  /**
   * 获取用户家族病
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getFamilyMedicalHistoryListByUserID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordFamilyMedicalHistory/GetFamilyMedicalHistoryListByUserID', config);
    return result
  },

  /**
   * 获取用户家族病史byId
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getFamilyMedicalHistoryByID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordFamilyMedicalHistory/GetFamilyMedicalHistoryByID', config);
    return result
  },

  /**
   * 更新用户家族病史
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async updateFamilyMedicalHistory(params, config = {}) {

    let result = await Vue.http.put('/MedicalRecordFamilyMedicalHistory/UpdateFamilyMedicalHistory', params, config);
    return result;
  },

  /**
   * 添加用户家族病史
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async addFamilyMedicalHistory(params, config = {}) {

    let result = await Vue.http.post('/MedicalRecordFamilyMedicalHistory/AddFamilyMedicalHistory', params, config);
    return result;
  },

  /**
   * 获取用户试管详情
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getTestTubeInfoListByUserID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordTestTubeInfo/GetTestTubeInfoListByUserID', config);
    return result
  },

  /**
   * 获取用户试管详情byId
   * @param {*} params 请求实体
   * @param {*} [config={}]
   */
  async getTubeInfoByID(params, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordTestTubeInfo/GetTubeInfoByID', config);
    return result
  },

  /**
   * 更新用户试管详情
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async updateTestTubeInfo(params, config = {}) {

    let result = await Vue.http.put('/MedicalRecordTestTubeInfo/UpdateTestTubeInfo', params, config);
    return result;
  },

  /**
   * 添加用户试管详情
   * @param {*} params userID
   * @param {*} [config={}]
   */
  async addTestTubeInfo(params, config = {}) {

    let result = await Vue.http.post('/MedicalRecordTestTubeInfo/AddTestTubeInfo', params, config);
    return result;
  },

}
